package com.powernode.feign;

import com.powernode.domain.Order;
import com.powernode.dto.PayOrderDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "order-service")
public interface PayOrderFeign {

    @PostMapping("/p/myOrder/loadOrderByNo")
    @ApiOperation("订单号获取订单")
    Order loadOrderByNo(@RequestBody String orderNumber);


    @PostMapping("/p/myOrder/updateOrder")
    @ApiOperation("根据付款状态修改订单")
    void updateOrder(@RequestBody PayOrderDto orderDto);
}
